package com.syt.mina.handler;

import com.syt.mina.handler.service.HandlerInterceptor;


public class MappedInterceptor {
	private final String[] pathPatterns;
	
	private final HandlerInterceptor interceptor;

	/**
	 * Create a new mapped interceptor.
	 * @param pathPatterns the path patterns
	 * @param interceptor the interceptor
	 */
	public MappedInterceptor(String[] pathPatterns, HandlerInterceptor interceptor) {
		this.pathPatterns = pathPatterns;
		this.interceptor = interceptor;
	}

	/**
	 * The path into the application the interceptor is mapped to.
	 */
	public String[] getPathPatterns() {
		return this.pathPatterns;
	}

	/**
	 * The actual Interceptor reference.
	 */
	public HandlerInterceptor getInterceptor() {
		return this.interceptor;
	}
}
